package io.xxx.mario.contact;

import com.baomidou.mybatisplus.annotation.TableId;
import io.xxx.mario.task.ReceiverType;
import io.xxx.mario.task.receive.Receiver;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Contact implements Receiver {

    @TableId
    private Long id;

    private String wxId;

    private String nickName;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    @Override
    public ReceiverType type() {
        return ReceiverType.CONTACT;
    }

    @Override
    public Long id() {
        return id;
    }

    public String outId() {
        return wxId;
    }

    @Override
    public String name() {
        return nickName;
    }
}
